﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Text;
using KCMS.BusinessLogic.Interfaces;
using StructureMap;

namespace KCMS.Helpers
{
    public static class Content
    {
        public static MvcHtmlString ContentImageUpload(this UrlHelper helper,string url)
        {
            ISettingsService settingsService = ObjectFactory.GetInstance<ISettingsService>();
            String directory = settingsService.getSettings().UploadDirectory;
            StringBuilder sb = new StringBuilder();
            sb.Append(helper.Content(directory+url));
            return MvcHtmlString.Create(sb.ToString());
        }
    }
}